<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
    <meta charset="utf-8">
    <title>video.js</title>
    <link href="https://unpkg.com/video.js@6.11.0/dist/video-js.min.css" rel="stylesheet">
    <script src="https://unpkg.com/video.js@6.11.0/dist/video.min.js"></script>
    <script src="https://unpkg.com/videojs-flash/dist/videojs-flash.js"></script>
    <script src="https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js"></script>
</head>
<body>
<div>
    <h1 th:text="视频测试"></h1>
    <video id="my-player1" autoplay class="video-js" controls>
        <source th:src="@{/video/download/test.m3u8}" type="application/x-mpegURL">
        <p class="vjs-no-js">
            not support
        </p>
    </video>
    <script type="text/javascript">
        const player = videojs('my-player1',{
            width:704,
            height:576
        });
    </script>
</div>
</body>
</html>